package sz;

import sz.factory.IOperationFactory;

public class Operationqumo extends Operation implements IOperationFactory {
    @Override
    public Operation createOperation() {
        return new Operationqumo();
    }

    public double getResult() {
        if (num2 == 0) {
            throw new IllegalArgumentException("除数不能为零");
        }
        return num1 % num2;
    }
}
